<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->title;?></title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/main.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/load.js"></script>
<!--时间选择器-->
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/lang/cn_utf8.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar-setup.js"></script>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar-blue.css" />
<!--colorbox-->
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/colorbox.jquery/jquery.colorbox.js"></script>
<link href="<?php echo $this->baseUrl;?>/files/admin/js/colorbox.jquery/colorbox2.css" rel="stylesheet" type="text/css"/>

</head>

<body style="overflow:auto;">
	<div id="main">
		<div id="topMenu">
			<div id="navigation">当前位置：日综合报表</div>
			<div id="topOtherMenu"></div>
		</div>
		<div id="body">
			<div id="search">
				<form id="searchForm" name="searchForm" method="post" action="<?php echo $this->projectUrl(array('groupId'=>$this->groupId));?>">
					<table>
						<tr>
							<td>
								日期：<input name="startTime" type="text" class="input" id="startTime" size="10" value="<?php echo $this->vars['startTime'];?>" />
								<script type="text/javascript">Calendar.setup({"ifFormat":"%Y-%m-%d","firstDay":0,"showsTime":false,"showOthers":false,"timeFormat":24,"inputField":"startTime","button":"startTime"});</script>
								-
								<input name="endTime" type="text" class="input" id="endTime" size="10" value="<?php echo $this->vars['endTime'];?>" />
								<script type="text/javascript">Calendar.setup({"ifFormat":"%Y-%m-%d","firstDay":0,"showsTime":false,"showOthers":false,"timeFormat":24,"inputField":"endTime","button":"endTime"});</script>
								
								&nbsp;操作系统：<input name="osName" type="text" class="input" id="osName" size="12" value="<?php echo $this->vars['osName'];?>" />
								&nbsp;推广ID：<input name="sourceId" type="text" class="input" id="sourceId" size="12" value="<?php echo $this->vars['sourceId'];?>" />
								&nbsp;推广子ID：<input name="sourceSubId" type="text" class="input" id="sourceSubId" size="12" value="<?php echo $this->vars['sourceSubId'];?>" />
								<input name="search" type="submit" id="search2" value="查找" class="button" />
								<input name="down" type="button" id="search2" value="下载" class="button" onclick="location.href='<?php echo $this->projectUrl(array('action'=>'output'));?>';"/>
							
							</td>
						</tr>
					</table>
				</form>
			</div>

			<div id="content">
			</div>
				<form id="listForm" name="listForm" method="post" action="">
					<table class="table">
						<tr class="subject">
							<td>日期</td>
							<td>操作系统</td>
							<td>Source</td>
							<td>装机数</td>
							<td>装机IP数</td>
							<td>启动次数</td>
							<td>启动客户端数</td>
							<td>总订单数</td>
							<td>有效订单数</td>
							<td>总订单金额</td>
							<td>有效订单金额</td>
						</tr>
<?php foreach($this->rows as $key=>$row) {?>
						<tr class="dataLine">
							<td><?php echo $row['date'];?></td>
							<td><?php echo $row['osName'];?></td>
							<td><?php echo $row['sourceId'];?>, <?php echo $row['sourceSubId'];?></td>
							<td class="numberTd"><?php echo $row['installNum'];?></td>
							<td class="numberTd"><?php echo $row['installIpNum'];?></td>
							<td class="numberTd"><?php echo $row['bootNum'];?></td>
							<td class="numberTd"><?php echo $row['bootClientNum'];?></td>
							<td class="numberTd"><?php echo $row['orderNum'];?></td>
							<td class="numberTd"><?php echo $row['okOrderNum'];?></td>
							<td class="numberTd">￥<?php echo $row['orderAmount'] * 1;?></td>
							<td class="numberTd">￥<?php echo $row['okOrderAmount'] * 1;?></td>
						</tr>
<?php
}
?>
					</table>
<table class="controlTable">
						<tr>
							<td colspan="6" align="right" class="paginator"><?php echo $this->pageString;?></td>
						</tr>
					</table>
				</form>
		</div>
		</div>
	</div>
</body>
</html>